package com.example.webmodule.listener;

import com.example.webmodule.event.CustomEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @ClassName EY-CustomEventListener
 * @Description com.example.webmodule.event
 * @Author menyj
 * @Date 2025/4/10
 **/
// 监听特定远程事件
@Component
public class CustomEventListener {
    @EventListener
    public void handleCustomEvent(CustomEvent event) {
        System.out.println("Received event: " + event.getMessage());
    }
}
